aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index 73a24397..4592b81e 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -8,7 +8,9 @@ export async function load({ depends, parent }) {
let { follows, followers } = await get(`/${subject.pubkey}/count`);
let followList = new Promise((r) => r([]));
if (user)
- followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(() => []);
+ followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
+ () => [],
+ );
return { follows, followers, followList };
}